package com.platform.api.bzproject.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 钱包明细
 * </p>
 *
 * @author guoshao
 * @since 2022-01-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tz_wallet_details")
public class WalletDetails extends Model {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 变动金额
     */
    private BigDecimal money;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 平台 1抖音 2快手
     */
    private Integer platform;

    /**
     * 数据类型   1收入 2支出
     */
    private Integer dataType;
    /**
     * 流水号
     */
    private String flowNo;


}
